module.exports = {
    appConfig: {
        pages: [
            'pages/index/index',
            'pages/task/index',
            'pages/mall/index',
            'pages/user/index',
            'modules/pages/login/index',
            'modules/pages/create/index',
            'modules/pages/order/index',
            'modules/pages/address/index',
            'modules/pages/add-address/index',
            'modules/pages/add-media/index',
            'modules/pages/media/index',
            'modules/pages/invite/index',
            'modules/pages/manage-my-invite/index',
            'modules/pages/task-info/index',
            'modules/pages/submit-task/index',
            'modules/pages/search/index',
            'modules/pages/confirm-order/index',
            'modules/pages/change/index',
            'modules/pages/register/index',
            'modules/pages/system-notice/index',
            'modules/pages/user-info/index',
            'modules/pages/edit-user/index'
        ],
        tabBar: {
            custom: true,
            color: '#999',
            selectedColor: '#B90220',
            backgroundColor: "#fff",
            list: [{
                pagePath: "pages/index/index",
                iconPath: 'assets/img/home.png',
                selectedIconPath: 'assets/img/home-active.png',
                text: "首页"
            }, 
            {
                pagePath: "pages/task/index",
                iconPath: 'assets/img/task.png',
                selectedIconPath: 'assets/img/task-active.png',
                text: "任务中心"
            },
            {
                pagePath: "pages/mall/index",
                iconPath: 'assets/img/mall.png',
                selectedIconPath: 'assets/img/mall-active.png',
                text: "礼品商城"
            },
            {
                pagePath: "pages/user/index",
                iconPath: 'assets/img/user.png',
                selectedIconPath: 'assets/img/user-active.png',
                text: "个人中心"
            }, 
        ]
        },
        usingComponents: {
            customtabbar: "custom-tab-bar/index"
        },
        subPackages: [
            // {
            //     root: 'modules/pages',
            //     pages: ['login/index'],
            // }
        ],
        preloadRule: {},
        plugins: {
            // "player": {
            //     "version": "2.4.9",
            //     "provider": "wxa75efa648b60994b"
            // },
            // "htmltowxml": {
            //     "version": "1.4.0",
            //     "provider": "wxa51b9c855ae38f3c"
            // }
        },

        window: {
            // backgroundTextStyle: 'dark',
            navigationBarBackgroundColor: '#F3F4F7',
            // navigationBarTitleText: 'iQOO社区',
            // navigationBarTextStyle: 'black',
            onReachBottomDistance: 50,
            backgroundColor: '#F3F4F7'
        },
        functionalPages: {
            independent: true
        },
        permission: {
            'scope.userLocation': {
                desc: '你的位置信息将用于小程序定位'
            }
        },
        lazyCodeLoading: 'requiredComponents',
        "__usePrivacyCheck__": true,
    }
};